//为了使ng-model能够绑定My97DatePicker插件的input的值
ticketHub.directive("datePicker",function(){
	    return {
	    	restrict:"A",
	    	link:function(scope, element, attr){
		        element.bind("click", function () {
		        	window.WdatePicker({
		            	onpicked: function () {
		            		scope.$apply(scope.fromDate = this.value);
		          		}
		        	});
		        });
	    	}
	  	};
	});
ticketHub.directive("datepicker",function(){
	    return {
	    	restrict:"A",
	    	link:function(scope, element, attr){
		        element.bind("click", function () {
		        	window.WdatePicker({
		            	onpicked: function () {
		            		scope.$apply(scope.toDate = this.value);
		          		}
		        	});
		        });
	    	}
	  	};
	});